Class symantec.itools.db.swing.JRecordStateLabel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.swing.JRecordStateLabel

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----JComponent
                           |
                           +----JLabel
                                   |
                                   +----symantec.itools.db.swing.JRecordStateLabel

public class JRecordStateLabel
extends JLabel
A dbAWARE Label that automatically displays the state of the current record in the RelationView it is bound with.

The state can be one of the following values:


Constructor Index

 o symantec.itools.db.swing.JRecordStateLabel()
Constructs a new JRecordStateLabel.

Method Index

 o getDataSource()
Gets the data source that this component is bound with.
 o getQueryNavigatorObject()
Gets the Querynavigator that this component is bound with.
 o getRelationView()
Gets the RelationView that this component is bound with.
 o setDataSource(String)
Sets the data source that this component is bound with.
 o setQueryNavigatorObject(QueryNavigator)
Sets the Querynavigator that this component is bound with.
 o setRelationView(RelationView)
Sets the RelationView that this component is bound with.
 o setText(String)

Constructors

 o JRecordStateLabel
public JRecordStateLabel()
Constructs a new JRecordStateLabel. By default its label will read: "".

Call setRelationView() to bind this component to a RelationView and auto-set the label text.

See Also:
setRelationView

Methods

 o getDataSource
public java.lang.String getDataSource()
Gets the data source that this component is bound with.

Returns:
name of the data source to bind with
See Also:
setDataSource
 o getQueryNavigatorObject
public symantec.itools.db.beans.binding.QueryNavigator getQueryNavigatorObject()
Gets the Querynavigator that this component is bound with.

Returns:
Querynavigator Object
See Also:
setQueryNavigatorObject
 o getRelationView
public symantec.itools.db.pro.RelationView getRelationView()
Gets the RelationView that this component is bound with.

Returns:
the RelationView currently bound with
See Also:
setRelationView
 o setDataSource
public void setDataSource(String Tname)
Sets the data source that this component is bound with.

Parameters:
Tname - the name of the data source to bind with
See Also:
getDataSource
 o setQueryNavigatorObject
public void setQueryNavigatorObject(QueryNavigator qn)
Sets the Querynavigator that this component is bound with.

Parameters:
qn - the querynavigator object to bind with
See Also:
getQueryNavigatorObject
 o setRelationView
public void setRelationView(RelationView rv)
Sets the RelationView that this component is bound with.

Parameters:
rv - the RelationView to bind with
See Also:
getRelationView
 o setText
public void setText(String txt)
Overrides:
setText in class JLabel

All Packages  Class Hierarchy  This Package  Previous  Next  Index